package com.kylin.upms.biz.utils;

import com.kylin.upms.biz.entity.UserSecurity;
import org.springframework.security.core.context.SecurityContextHolder;

public class UserUtils {


    public static UserSecurity getUser(){
        return (UserSecurity) SecurityContextHolder.getContext().getAuthentication().getPrincipal();
    }
}
